import hashlib
#字符串加密
# s = '12345'+'zhoujirong'
# # m = hashlib.md5(s.encode())
# m = hashlib.sha256(s.encode())
# res = m.hexdigest()
# print(res)

#文件加密
file = open(r'C:\Users\SXLLS\Desktop\main (1).jpg','rb')
a = hashlib.md5(file.read())
file.close()
print(a.hexdigest())